class logic :
    def __init__ ( self , mediator ) :
        self . _mediator = mediator
    def on_copy_menu_return ( self ) :
        self . _mediator . hide_copy_menu ( )
        self . _mediator . show_main_menu ( )
    def on_creation_menu_base_created ( self ) :
        self . _mediator . hide_creation_menu ( )
        self . _mediator . show_welcome ( )
    def on_creation_menu_return ( self ) :
        self . _mediator . hide_creation_menu ( )
        self . _mediator . show_main_menu ( )
    def on_edit_menu_continue ( self ) :
        self . _mediator . hide_edit_menu ( )
        self . _mediator . show_editor ( )
    def on_edit_menu_return_to_main_menu ( self ) :
        self . _mediator . hide_edit_menu ( )
        self . _mediator . show_main_menu ( )
    def on_edit_menu_save ( self ) :
        self . _mediator . hide_edit_menu ( )
        self . _mediator . save_knowledge_base_in_editor ( )
        self . _mediator . show_editor ( )
    def on_edit_menu_save_as ( self ) :
        self . _mediator . hide_edit_menu ( )
        self . _mediator . show_save_as_menu ( )
    def on_editor_menu_button ( self ) :
        self . _mediator . hide_editor ( )
        self . _mediator . show_edit_menu ( )
    def on_main_menu_copy ( self ) :
        self . _mediator . hide_main_menu ( )
        self . _mediator . show_copy_menu ( )
    def on_main_menu_create ( self ) :
        self . _mediator . hide_main_menu ( )
        self . _mediator . show_creation_menu ( )
    def on_main_menu_open ( self ) :
        self . _mediator . hide_main_menu ( )
        self . _mediator . show_open_menu ( )
    def on_main_menu_quit ( self ) :
        self . _mediator . quit_application ( )
    def on_main_menu_rename ( self ) :
        self . _mediator . hide_main_menu ( )
        self . _mediator . show_rename_menu ( )
    def on_open_menu_base_opened ( self ) :
        self . _mediator . hide_open_menu ( )
        self . _mediator . show_editor ( )
    def on_open_menu_return ( self ) :
        self . _mediator . hide_open_menu ( )
        self . _mediator . show_main_menu ( )
    def on_rename_menu_return ( self ) :
        self . _mediator . hide_rename_menu ( )
        self . _mediator . show_main_menu ( )
    def on_save_as_menu_base_saved ( self , base_name ) :
        self . _mediator . hide_save_as_menu ( )
        self . _mediator . save_as_knowledge_base_in_editor ( base_name )
        self . _mediator . show_editor ( )
    def on_save_as_menu_return ( self ) :
        self . _mediator . hide_save_as_menu ( )
        self . _mediator . show_edit_menu ( )
    def on_welcome_finished ( self ) :
        self . _mediator . hide_welcome ( )
        self . _mediator . show_editor ( )
    def start ( self ) :
        self . _mediator . show_main_menu ( )
